import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import topNav from './modules/topNav'
import getters from './getters'
import dict from './modules/dict'



Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    dict,
    topNav
  },
  getters,
  state: {
    currentNode:{}
  },
  mutations: {
    SET_NODE: (state, currentNode) => {
      state.currentNode = currentNode
    },
  },
  actions: {
  },
})
